import { defineStore } from 'pinia'

const useDarkThemeStore = defineStore('DarkTheme', {
    state() {
        return {
            darkMode: true
        }
    },
    actions: {
        // 主题切换
        handleSwitchMode() {
            this.darkMode = !this.darkMode
        }
    }
})

export default useDarkThemeStore